import Vue from 'vue'
import Router from 'vue-router'
import Shouye from '@/components/Shouye'
import Sortpage from '@/components/Sortpage'
import Search from '@/components/Search'
import Discovery from '@/components/Discovery'
import Personpage from '@/components/Person'
import Orderpage from '@/components/Orderpage'
import Loginpage from '@/components/Login'
import Detail from '@/components/Detail'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Shouye',
      component: Shouye
    },
    {
      path: '/sort/:sortname',
      name: 'Sortpage',
      component: Sortpage
    },
    {
      path: '/search',
      name: 'Search',
      component: Search
    },
    {
      path: '/discovery',
      name: 'Discovery',
      component: Discovery
    },
    {
      path: '/orderpage',
      name: 'Orderpage',
      component: Orderpage
    },
    {
      path: '/loginpage',
      name: 'Loginpage',
      component: Loginpage
    },
    {
      path: '/personpage',
      name: 'Personpage',
      component: Personpage
    },
    {
      path: '/detail/:id',
      name: 'Detail',
      component: Detail
    }
    
  ]
})
